package com.springapp.service.impl;

import com.springapp.dao.dao.impl.LigneCommandeDAO;
import com.springapp.model.LigneCommande;
import com.springapp.service.ILigneCommandeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Thomas on 23/06/14.
 */

@Service
public class LigneCommandeService implements ILigneCommandeService {
    @Autowired
    private LigneCommandeDAO ligneCommande;


    @Override
    public List<LigneCommande> getCommandeByIDAndByUser(String _sLogin, String _sRef) {
        return ligneCommande.getCommandeByIDAndByUser(_sLogin,  _sRef);
    }

    @Override
    public String getRefCommandeByIDAndByUser(String _sLogin) {
        return ligneCommande.getRefCommandeByIDAndByUser(_sLogin);
    }

}
